namespace Himall.Entity
{
    using System;
    using System.Collections.Generic;
    /// <summary>
    /// 商家结算主表
    /// </summary>
    public partial class AccountInfo:BaseModel
    {  
    
        long _id;
        public new long Id { get{ return _id; } set{ _id=value; base.Id = value; } }
        public long ShopId { get; set; }
        public string ShopName { get; set; }
        /// <summary>
        /// 出账日期
        /// </summary>
        public System.DateTime AccountDate { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public System.DateTime StartDate { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public System.DateTime EndDate { get; set; }
        /// <summary>
        /// 枚举 0未结账，1已结账
        /// </summary>
        public AccountStatus Status { get; set; }
        /// <summary>
        /// 佣金
        /// </summary>
        public decimal CommissionAmount { get; set; }
        /// <summary>
        /// 退款金额
        /// </summary>
        public decimal RefundAmount { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 运费
        /// </summary>
        public decimal FreightAmount { get; set; }
        /// <summary>
        /// 退还佣金
        /// </summary>
        public decimal RefundCommissionAmount { get; set; }
        /// <summary>
        /// 预付款总额
        /// </summary>
        public decimal AdvancePaymentAmount { get; set; }
        /// <summary>
        /// 本期应结
        /// </summary>
        public decimal PeriodSettlement { get; set; }
        /// <summary>
        /// 商品实付总额
        /// </summary>
        public decimal ProductActualPaidAmount { get; set; }
        /// <summary>
        /// 分销佣金
        /// </summary>
        public decimal Brokerage { get; set; }
        /// <summary>
        /// 退还分销佣金
        /// </summary>
        public decimal ReturnBrokerage { get; set; }
    
        public virtual ICollection<AccountPurchaseAgreementInfo> Himall_AccountPurchaseAgreement { get; set; } = new HashSet<AccountPurchaseAgreementInfo>();
        public virtual ICollection<AccountDetailInfo> Himall_AccountDetails { get; set; }=new HashSet<AccountDetailInfo>();
    }
}
